package com.sijibao.amap.frg;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.LinearLayout;

import com.android.volley.toolbox.ImageLoader;
import com.makeramen.RoundedImageView;
import com.makeramen.RoundedNetWorkImageView;
import com.sijibao.amap.R;
import com.yicai.net.Rop;
import com.yicai.volley.BaseVolley;

public class TouXiangMarkerView extends LinearLayout{

	private RoundedImageView img;
	
	private String urll;
	
	private TouXiangMarkerView(Context context) {
		super(context);
		// TODO Auto-generated constructor stub
	}
	
	public TouXiangMarkerView(Context context,final String url){
		super(context);
		LayoutInflater inflater = LayoutInflater.from(context);
		View view = inflater.inflate(R.layout.amap_view_touxiang_info_window, this);
		img = (RoundedImageView) view.findViewById(R.id.touxiang);
		BaseVolley.getImageLoader(getContext()).get(Rop.getSmallUrl(getContext(), url), ImageLoader.getImageListener(img, R.drawable.amap_dispatch_logo, R.drawable.amap_dispatch_logo));
		
	}
	
}
